#ifndef NR_IO_MONGODB_TEST_H
#define NR_IO_MONGODB_TEST_H

#include "nr_device.h"
#include "nr_device_item.h"
#include "nr_io.h"

class nr_io_mongodb_test : public QObject, public nr_device_delegate
{
    Q_OBJECT
public:
    nr_io_mongodb_test(QObject *parent = NULL);
    ~nr_io_mongodb_test(void);
    
    void run();

    virtual void on_data_received(nr_data *data);
    
    virtual void on_event_report(nr_event *evt);
    
    //test code about mongodb query_data
    void test_query_data();

private:
    nr_device_item m_nport_item;
    nr_device *m_nport_device;
    nr_io *m_io;

    nr_create_device_fun m_create_device_fun;
    nr_free_device_fun m_free_device_fun;
};

#endif